﻿<%@page import="cn.jdy.common.constant.GlobalConstant"%>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="jdy" uri="http://www.qwe.com.cn/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>康养旅居网</title>
          <jsp:include page="../common/common.jsp"/>
                <link rel="stylesheet" href="${path}/css/sign.css">
</head>
<body>
    <div class="signtitle">
        <h3></h3>
    </div>

    <div class="box setting">
              	<form id="frm_login" method="post" action="${path}/member/selfsave">

        <ul>
   
            <li>
                 余额：<input type="text" name="yeme" id="yeme"  disabled="disabled"   value="${member.money} ">
            </li>
        
              <li>
               提现密码：<input type="password"  id="txpassd"   > 
            </li>
           
        </ul>
 
        
        
        <p class="forget "><!--  <a href="">忘记登录密码?</a>--></p>
        <div class="clearfloat"></div>        </form>
        <button class="signbutton loginout"  onclick="opentix(${member.money} )">提现</button>
    
    </div>
    <script src="${path}/js/jquery-3.2.1.min.js"></script>
</body>
<script>
function opentix(my){
	var pf=$("#txpassd").val();

	 if(my>99){

		 if(pf!='' && pf != null){
		 layer.open({
			    content: '是否提现'
			    ,btn: ['确定', '取消']
			    ,skin: 'footer'
			    ,yes: function(index){
					 $.ajax({
				           url: _path + "/member/jianjifen?passwdNew="+pf+"&myoney="+my,
				           type: "get",
				           async: false,
				           dataType: 'json',
				           success: function (data) {
				        	   if(data.statusCode==200){
									layer.open({ content:"提现成功，2日内到账",skin: 'msg' ,time: 2 });//2秒后自动关闭
									$("#zj").text(0)
				        	   }else{
									layer.open({ content:data.info,skin: 'msg' ,time: 2 });//2秒后自动关闭

				        	   }
				           }
				     });
			    	
			    }
			  });
		 }else{
				layer.open({ content:"请输入提现密码",skin: 'msg' ,time: 2 });//2秒后自动关闭

		 }
	 }else{
			layer.open({ content:"金额大于100才能提现",skin: 'msg' ,time: 2 });//2秒后自动关闭

	 }
		  
	}		 
</script>
</html>